<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<html>
<%@include file = "common/head.jsp" %>
<!-- 项目管理 -->
<%-- <%- include css %> --%>
<div class="container-fluid s-pdn s-pdt-20">
    <div class="search-panel">
        <form class="form-inline" action="" method="post" id="projectForm">
          <div class="s-mt-10">
            <div class="form-group form-group-sm">
                <span class="control-label s-5em">项目编号：</span>
                <input type="text" class="form-control s-mr-15 w-150" id="projectId" name="projectId">
            </div>

            <div class="form-group form-group-sm">
                <span class="control-label s-4em">有效性：</span>
                <select class="form-control w-100 s-mr-15" id="isValid" name="isValid">
                    <option value="-1">--全部--</option>
                    <option value="0">生效</option>
                    <option value="1">已删除</option>
                </select>
            </div>

            <div class="form-group form-group-sm">
                <span class="control-label s-5em">负责人：</span>
                <input type="text" class="form-control w-150 s-mr-15" id="responsible" name="responsible">
            </div>

            <div class="form-group form-group-sm">
                <span class="control-label s-5em">开始时间：</span>
                <div class="input-group w-130">
                  <input type="text" class="form-control" id="startFrom" name="startFrom">
                  <span class="input-group-addon clearDate">&times;</span>
                </div> 至
                <div class="input-group w-130 s-mr-15">
                  <input type="text" class="form-control" id="startTo" name="startTo">
                  <span class="input-group-addon clearDate">&times;</span>
                </div>
                <!-- <input type="text" class="form-control w-120 f-csp" id="startFrom" name="startFrom" value=""> 至
                <input type="text" class="form-control w-120 s-mr-15 f-csp" id="startTo" name="startTo"> -->
            </div>

          </div>

          <div class="s-mt-10">

            <div class="form-group form-group-sm">
                <span class="control-label s-5em">项目名：</span>
                <input type="text" class="form-control w-150 s-mr-15" id="projectName" name="projectName">
            </div>


            <div class="form-group form-group-sm">
                <span class="control-label s-4em">状态：</span>
                <select class="form-control w-100 s-mr-15" id="status" name="status">
                    <option value="-1">--全部--</option>
                    <option value="0">未开始</option>
                    <option value="1">进行中</option>
                    <option value="2">已完成</option>
                </select>
            </div>

            <div class="form-group form-group-sm">
                <span class="control-label s-5em">项目成员：</span>
                <input type="text" class="form-control w-150 s-mr-15" id="configure" name="configure">
            </div>

            <div class="form-group form-group-sm">
                <span class="control-label s-5em">结束时间：</span>
                <div class="input-group w-130">
                  <input type="text" class="form-control" id="endFrom" name="endFrom">
                  <span class="input-group-addon clearDate">&times;</span>
                </div> 至
                <div class="input-group w-130 s-mr-15">
                  <input type="text" class="form-control" id="endTo" name="endTo">
                  <span class="input-group-addon clearDate">&times;</span>
                </div>
            </div>

          </div>

          <div class="s-mt-10">
            <button class="btn btn-sm btn-primary s-w80" id="search" type="button">查询</button>
            <button class="btn btn-sm btn-primary s-w80" id="add" type="button">新增项目</button>
            <button class="btn btn-sm btn-primary s-w80" id="delete" type="button">批量删除</button>

          </div>

        </form>
    </div>
    <div class="m-result s-mt-20 f-vam">
        <table class="table table-bordered table-condensed" id="projectTable">
            <thead>
                <tr>
                    <!-- <th w_num="line"></th> -->
                    <th w_check="true"></th>
                    <th w_index="id">项目编号</th>
                    <th w_index="name">项目名</th>
                    <th w_index="begin_date">开始时间</th>
                    <th w_index="end_date">结束时间</th>
                    <th w_index="responsible">负责人</th>
                    <th w_index="configure">项目成员</th>
                    <th w_index="cid" w_hidden="true"></th>
                    <th w_index="status" w_render="project.renderStatus">状态</th>
                    <th w_index="is_valid" w_render="project.renderIsValid">有效性</th>
                    <th w_render="project.operate">操作</th>
                </tr>
            </thead>
        </table>
    </div>
</div>

<!-- 新增/修改对话框 -->
<div class="modal fade" id="dialog" role="dialog">
  <div class="modal-dialog" style="width:630px;overflow:hidden;font-size:14px;">
      <div class="modal-content" tmp-id="rtContent">
          <div class="modal-header s-h60">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
              <span class="modal-title s-w22" id="title"></span>
          </div>

          <div class="s-pd10">
          <form class="form-horizontal" id="dialogForm">

            <input type="hidden" name="editProjectId" id="editProjectId">

            <div class="form-group form-group-sm">
              <label for="editProjectName" class="col-sm-3 control-label"><span class="red">* </span>名称：</label>
              <div class="col-sm-6">
                <input type="text" class="form-control" id="editProjectName" name="editProjectName">
              </div>
              <!-- <span class="red" id="errMsg" class="errMsg"></span> -->
            </div>

            <div class="form-group form-group-sm">
              <label for="beginDate" class="col-sm-3 control-label">开始时间：</label>
              <div class="col-sm-6">
                <input type="text" class="form-control" id="beginDate" name="beginDate">
              </div>
            </div>

            <div class="form-group form-group-sm">
              <label for="endDate" class="col-sm-3 control-label">结束时间：</label>
              <div class="col-sm-6">
                <input type="text" class="form-control" id="endDate" name="endDate">
              </div>
            </div>

            <div class="form-group form-group-sm">
              <label for="uid" class="col-sm-3 control-label"><span class="red">* </span>负责人：</label>
              <div class="col-sm-6">
                <select class="form-control" id="uid" name="uid">

                </select>
              </div>
            </div>

            <div class="form-group form-group-sm">
              <label for="" class="col-sm-3 control-label"><span class="red">* </span>配置成员：</label>
              <div class="col-sm-6">
                <div class="input-group">
                  <div class="input-group-btn">
                    <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">请选择<span class="caret"></span></button>

                    <div class="dropdown-menu panel panel-default s-w400">
                      <div class="panel-body" id="cid">
                        <!-- <label><input name="" type="checkbox" value=""></label> -->
                      </div>
                    </div>

                  </div><!-- /btn-group -->
                  <input readonly type="text" class="form-control" aria-label="..." id="cnames" name="cnames">

                </div><!-- /input-group -->
              </div>
              <!-- <span class="red" id="errMemberMsg" class="errMsg"></span> -->
            </div><br>
            <input type="hidden" id="cids">

            <div class="form-group form-group-sm">
              <label for="editStatus" class="col-sm-3 control-label"><span class="red">* </span>状态：</label>
              <div class="col-sm-6">
                <select class="form-control" id="editStatus">
                  <option value="0">未开始</option>
                  <option value="1">进行中</option>
                  <option value="2">已完成</option>
                </select>
              </div>
            </div>

            <div class="form-group form-group-sm" id="showIsValid">
              <label for="editIsValid" class="col-sm-3 control-label">有效性：</label>
              <div class="col-sm-6">
                <select class="form-control" id="editIsValid">
                  <option value="0">生效</option>
                  <option value="1">已删除</option>
                </select>
              </div>
            </div>


          </form>

          <div class="modal-footer s-h60 f-tac s-mt-10">
              <button type="button" class="btn btn-primary" id="confirm" aria-label="Close">
              <span aria-hidden="true" >确定</span>
              </button>

              <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
          <div>
          </div>
      </div>
  </div>
</div>
<%@include file = "common/taglib.jsp" %>
<script type="text/javascript" src="javascripts/page/projectManagement.js"></script>